package com.androidified.personalshopper;

import java.util.ArrayList;
import java.util.List;

import com.androidified.personalshopper.bean.Commerce;

public class CommerceProvider {

	private static final List<Commerce> COMMERCES = new ArrayList<Commerce>();

	public static List<Commerce> get() {
		return COMMERCES;
	}
	
	public static void set(List<Commerce> commerces) {
		COMMERCES.clear();
		if (commerces != null) {
			COMMERCES.addAll(commerces);
		}
	}

	private CommerceProvider() {
		// No instances.
	}
	
}
